package com.shycloud.mido.basic.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 敏感词汇实体
 * @author yyy
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class BasSensitiveWords  extends Model<BasSensitiveWords> {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId(value = "sens_id", type = IdType.AUTO)
	private Integer sensId;
	/**
	 * 文本
	 */
	@NotBlank(message = "文本不能为空")
	private String text;
	/**
	 * 创建者
	 */
	private String createUser;
	/**
	 * 创建时间
	 */
	private LocalDateTime createTime;
	/**
	 * 修改时间
	 */
	private LocalDateTime updateTime;
	/**
	 * 删除标记 逻辑删除标示 默认是有效数据，默认值0（False）'
	 */
	@TableLogic
	private String delFlag;

	@Override
	protected Serializable pkVal() {
		return this.sensId;
	}

}
